package com.yegs.jltqc.dao;

import com.yegs.jltqc.VO.Complaint;
import com.yegs.jltqc.VO.OutCome;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface ComplaintRepository extends JpaRepository<Complaint,Long> {

    Page<Complaint> findComplaintsByCdlcode(String cdlcode, Pageable pageable);

    Complaint findFirstByIdIsAfter(Long id);

    Complaint findFirstByIdBeforeOrderByIdDesc(Long id);

    Complaint findFirstByOrderById();

    Complaint findFirstByOrderByIdDesc();


}
